#include "NamedPipe.hpp"

int main()
{
    // 创建管道和移除管道交由一个进程做就行,这里交由server来处理

    NamedPipe fifo(comm_path, User);
    if (fifo.OpenForWrite())
    {
        cout << "client open namedpipe done" << endl;

        while (true)
        {
            cout << "Please Enter> ";
            string message;
            getline(cin, message);
            fifo.WriteNamedPipe(message);
        }
    }

    return 0;
}